<?php
namespace Pw\MainBundle\Classes;
class ImageTag extends Tag
{
	public function __construct(){
		parent::__construct('image', null, null, false);
	}
	public function isParamAllowed($param, $value){
		if ($param === 'source') {
			return true;
		}
		return false;
	}
	public function getRepalceOpen() {
		$res = '';
		if (isset($this->params['source'])) {
			$res .= '<img class="bbImage" src="' . $this->params['source'] . '" />';
		}
		return $res;
	}
}
